import baseModel from './baseModel'

class sensorModel extends baseModel {

    constructor(options) {
        super(options)
    }

    deviceList(data) {
        let url = ` /api/deviceCollect/query`;
        return this.$get(url, data)
    }

    queryByUser(data) {
        let url = ` /api/deviceCollect/queryByUser`;
        return this.$post(url, data)
    }

    deviceType() {
        let url = ` /api/deviceType/getAll`;
        return this.$get(url)
    }

    deviceCollectAdd(data) {
        let url = `/api/deviceCollect/insert`;
        return this.$post(url, data)
    }

    deviceCollectDelete(id) {
        let url = `/api/deviceCollect/delete/${id}`;
        return this.$get(url)
    }

    deviceCollectUpdate(data) {
        let url = `/api/deviceCollect/update`;
        return this.$post(url, data)
    }

    devicePointsList() {
        let url = ` /api/deviceCollect/query`;
        return this.$get(url)
    }

}

export default sensorModel;